import Vuex from 'vuex'
import Vue from 'vue'   

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        token:uni.getStorageSync('token') || ''
    },
    mutations: {
        setToken(state,token){
            state.token = token
            uni.setStorageSync('token',token)
        }
    },
    actions: {
    },
    getters: {
    },
    modules: {
    }
})